<?php

namespace app\admin\controller;

use app\model\Setting as SettingModel;

class Setting extends SettingBase
{
    public function updateAll()
    {
        $setting = new SettingModel;

        $setting->saveAll(input());

        return json(['code' => 20000, 'msg' => '更新成功']);
    }
}
